//package com.frontier.gateway8000.config;
//
//import org.springframework.cloud.gateway.config.GatewayProperties;
//import org.springframework.cloud.gateway.filter.factory.GatewayFilterFactory;
//import org.springframework.cloud.gateway.handler.predicate.RoutePredicateFactory;
//import org.springframework.cloud.gateway.route.RouteDefinitionLocator;
//import org.springframework.cloud.gateway.route.RouteDefinitionRouteLocator;
//import org.springframework.cloud.gateway.route.RouteLocator;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import java.util.List;
//
///**
// * @author YLS-XuXu
// * @date 2022/3/3
// */
//@Configuration
//public class PredicateConfiguration {
//    @Bean
//    public RouteLocator routeDefinitionRouteLocator(GatewayProperties properties,
//                                                    List<GatewayFilterFactory> gatewayFilters,
//                                                    List<RoutePredicateFactory> predicates,
//                                                    RouteDefinitionLocator routeDefinitionLocator,
//                                                    ConfigurationService configurationService) {
//        predicates.add(new ExtCheckRoutePredicateFactory());
//        return new RouteDefinitionRouteLocator(routeDefinitionLocator, predicates,
//                gatewayFilters, properties, configurationService);
//    }
//}
